<form id="pagerForm" method="post" rel="pagerForm" action="admin.php?c=example&a=example_dialist" onsubmit="return dwzSearch(this, 'dialog');">
	<input type="hidden" name="pageNum" value="<{$page['nowPage']}>" />
	<input type="hidden" name="numPerPage" value="<{$page['num']}>" />
	<input type="hidden" name="orderField" value="${param.orderField}" /><!--查询排序字段名-->
	<input type="hidden" name="orderDirection" value="${param.orderDirection}" /><!--排序方式-->
</form>
<script type="text/javascript">
	$(function(){
		$(".mysearch").click(function(){
			$("#mysearch1").submit();
		})
	})

	$("[name=province]").change(function(){
		var upid=$(this).val();
		$.post(
			'ajax.php?action=getCity',
			{upid:upid},
			function(data){
				if(data){
					$("[name=city]").html(data);
				}
			})
	})
	$("[name=city]").change(function(){
		var upid=$(this).val();
		$.post(
			'ajax.php?action=getCounty',
			{upid:upid},
			function(data){
				if(data){
					$("[name=county]").html(data);
				}
			})
	})
</script>

<div class="pageHeader" style="display: ;">

	<form rel="" id="mysearch1" onsubmit="return dwzSearch(this,'dialog');" action="admin.php?c=example&a=example_dialist" method="post">
		  
		<div class="searchBar">
			<table class="searchContent">
				<tr>

					<td>
						<label>地区：</label>
						<select class="" name="province">
							<option value="">请选择</option>
							
						</select>
						<select class="" name="city">
							<option value="">请选择</option>
							
						</select>
						<select class="" name="county">
							<option value="">请选择</option>
							
						</select>
					</td>
					
					
				</tr>
				<tr>
					<td>
						<label>用户名：</label>
						<input name="title" value="<{$search.title}>" type="text">
					</td>
					
					<td>
						<div class="subBar">
							<ul>
								<li><div class="buttonActive"><div class="buttonContent"><button class="mysearch" type="button">检索</button></div></div></li>
							</ul>
			            </div>
					</td>
				</tr>
			</table>	
		</div>

	</form>
</div>
<form method="post" action="admin.php?c=example&a=example_dialist" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<!-- <li><a class="add" href="admin_add.php" target="navTab" width="577" height="300" rel="addvisit"><span>添加</span></a></li> -->
			
		</ul>
	</div>
	<table class="table" width="100%" layoutH="170" targetType="dialog">
		<thead>
			<tr>		
				<th align="center" style="width:5%;" ><input type="checkbox" group="id[]" class="checkboxCtrl"></th>	
				
				<th align="center" style="width:10%;" >ID</th>
				<th align="center" style="width:15%;" >用户名</th>
				<th align="center" style="width:10%;" >真名</th>
				<th align="center" style="width:15%;" >日期</th>
				<th align="center" style="width:15%;" >状态</th>
				
			</tr>
		</thead>
		<tbody>
			<{foreach($list as $k => $v){}>
				<tr target="id" rel="<{$v['id']}>">
					<td><input name="id[]" <{$v['checked']}> value="<{$v['id']}>" type="checkbox" ></td>
					<td><{$v['id']}></td>
					<td><{$v['title']}></td>
					<td><{$v['realname']}></td>
					<td><{$v['date']}></td>
					<td><{$v['state']}></td>
				</tr>
			<{}}>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="dialogPageBreak({numPerPage:this.value})">
				<option value="20" <{if ($page['num']=='20'){}>selected="selected"<{}}>>20</option>
				<option value="50" <{if ($page['num']=='50'){}>selected="selected"<{}}>>50</option>
				<option value="100" <{if ($page['num']=='100'){}>selected="selected"<{}}>>100</option>
				<option value="200" <{if ($page['num']=='200'){}>selected="selected"<{}}>>200</option>
			</select>
			<span>条，共<{$page['total']}>条</span>	
			
		</div>
		<div class="pagination" targetType="dialog" totalCount="<{$page['total']}>" numPerPage="<{$page['num']}>" pageNumShown="10" currentPage="<{$page['nowPage']}>"></div>
	</div>
	<input name="submits" value="submit" type="hidden">
	<div class="formBar">
		<ul style="float:left;">
			<li>
				<div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div>
			</li>
			<li>
				<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
			</li>
		</ul>
	</div>
</div>
</form>


